Spread Windows Forms 11.0 Product Documentation
AddRange(String[]) Method
Example 


GrapeCity.Win.PluginInputMan Assembly > GrapeCity.Win.Spread.InputMan.CellType Namespace > ListItemCollectionInfo Class > AddRange Method : AddRange(String[]) Method
A specified collection added into the collection.
Adds text of the specified collection to the end of the collection.
Syntax
'Declaration
 
Public Overloads Sub AddRange( _
   ByVal texts() As String _
) 
'Usage
 
Dim instance As ListItemCollectionInfo
Dim texts() As String
 
instance.AddRange(texts)
public void AddRange( 
   string[] texts
)

Parameters

texts
A specified collection added into the collection.
Example
This example adds items to the list.
GrapeCity.Win.Spread.InputMan.CellType.GcComboBoxCellType gccombo = new GrapeCity.Win.Spread.InputMan.CellType.GcComboBoxCellType();
gccombo.DropDownStyle = ComboBoxStyle.DropDownList;           
gccombo.Items.AddRange(new string[] { "Feta", "Havarti", "Gruyere" });
fpSpread1.Sheets[0].Cells[1, 1].CellType = gccombo;
Dim gccombo As New GrapeCity.Win.Spread.InputMan.CellType.GcComboBoxCellType()
gccombo.DropDownStyle = ComboBoxStyle.DropDownList
gccombo.Items.AddRange(New String() {"Feta", "Havarti", "Gruyere"})
FpSpread1.Sheets(0).Cells(1, 1).CellType = gccombo
See Also

Reference

ListItemCollectionInfo Class
ListItemCollectionInfo Members
Overload List